package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.BusinessQueryDTO;
import com.qk.dto.BusinessUpdateDTO;
import com.qk.entity.Business;
import com.qk.vo.OverviewVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
    Page<Business> listBusinesses(Page<Business> businesses, BusinessQueryDTO businessQueryDTO);

    Business selectBusinessById(Integer id);

    void updateBusinessById(BusinessUpdateDTO businessUpdateDTO);

    OverviewVO getBusinessOverviewData();
}
